package com.ecoolex.union.pay.retailer.ws;

import com.ecoolex.framework.common.pojo.Page;
import com.ecoolex.framework.common.pojo.Pagination;
import com.ecoolex.union.pay.retailer.entity.UnionPayPopularMerchantProduct;
import com.ecoolex.union.pay.retailer.pojo.AddPopularMerchantProductDTO;
import com.ecoolex.union.pay.retailer.pojo.UnionPayPopularMerchantProductDTO;

import java.util.List;

public interface UnionPayPopularMerchantProductService {
    List<UnionPayPopularMerchantProductDTO> getPopularProducts(String merchantId);

    List<UnionPayPopularMerchantProduct> queryMerchantProduct(String merchantId);

    Pagination<UnionPayPopularMerchantProduct> queryMerchantProduct(String merchantId, Page page);

    UnionPayPopularMerchantProduct addMerchantProduct(AddPopularMerchantProductDTO record, String userName);

    UnionPayPopularMerchantProduct get(Integer id);

    UnionPayPopularMerchantProduct editMerchantProduct(UnionPayPopularMerchantProduct old, String userName);

    void delete(UnionPayPopularMerchantProduct product, String userName);

    public static final String NAME_SPACE = "UNION_PAY:";

    public static final String MERCHANT = NAME_SPACE + "MERCHANT:";

    public static final String PRODUCT = NAME_SPACE + "PRODUCT:";
}
